package com.repository.service;

import com.repository.dao.EmpEsRepository;
import com.repository.entity.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EmpEsServiceImpl {

    private EmpEsRepository empEsRepository;

    @Autowired
    public EmpEsServiceImpl(EmpEsRepository empEsRepository) {
        this.empEsRepository = empEsRepository;
    }

    public Iterable<Emp> findAll(){
        return empEsRepository.findAll();
    }
}
